package com.aisile.admin.controller.v1;

import com.aisile.admin.service.AdLoginService;
import com.aisile.model.admin.dtos.AdUserDto;
import com.aisile.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:yry
 * @Date:2024/4/25 0025
 * @VERSON:1.0
 */
@RestController
@RequestMapping("/api/v1/login")
public class AdLoginControllerApi {

    @Autowired
    private AdLoginService adLoginService;

    @PostMapping("/in")
    public ResponseResult login(@RequestBody AdUserDto dto){
        return adLoginService.login(dto);
    }
}
